package com.donggua.aichebao.photo;

import android.app.Activity;
import android.content.Intent;

import com.donggua.aichebao.DGPermissionUtil;

import java.util.List;

/**
 * Created by fzh on 2017/8/17.
 */

public abstract class DGPhotoBase {

    protected int mPicNumber = 3;
    protected Activity activity;
    public DGPhotoBase(Activity act){
        activity = act;
        DGPermissionUtil.grantPermission(activity);
    }
    public void setmPicNumber(int number){
        mPicNumber = number;
    }
    public abstract void startCamera();
    public abstract void showPhotoPic();
    public abstract void stopCamera();
    public abstract List<String> onActivityResult(int requestCode, int resultCode, Intent data);
}
